﻿namespace Yipusoft.BaseDoc.BLL
{
    using System;
    using System.Collections.Generic;
    using Yipusoft.BaseDoc.DAL;
    using Yipusoft.BaseDoc.Model;

    public class DocSearchKey
    {
        public static bool Delete(Guid Id)
        {
            Yipusoft.BaseDoc.DAL.DocSearchKey key = new Yipusoft.BaseDoc.DAL.DocSearchKey();
            return key.Delete(Id);
        }

        public static DocSearchKeyInfo GetDetail(Guid Id)
        {
            Yipusoft.BaseDoc.DAL.DocSearchKey key = new Yipusoft.BaseDoc.DAL.DocSearchKey();
            return key.GetDetail(Id);
        }

        public static List<DocSearchKeyInfo> GetList(string Where)
        {
            Yipusoft.BaseDoc.DAL.DocSearchKey key = new Yipusoft.BaseDoc.DAL.DocSearchKey();
            return key.GetList(Where);
        }

        public static Guid Insert(DocSearchKeyInfo model)
        {
            Yipusoft.BaseDoc.DAL.DocSearchKey key = new Yipusoft.BaseDoc.DAL.DocSearchKey();
            return key.Insert(model);
        }

        public static bool Update(DocSearchKeyInfo model)
        {
            Yipusoft.BaseDoc.DAL.DocSearchKey key = new Yipusoft.BaseDoc.DAL.DocSearchKey();
            return key.Update(model);
        }
    }
}

